
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
import Main from '@/pages/Main'



let routes = [{
  path: '/',
  component: Main,
  name: 'main'
}, 
{
  path: '/news',
  name: 'news-page',
  component: require('@/components/News').default
},
{
  path: '/nedb',
  name: 'nedb-page',
  component: require('@/components/Nedb').default
},
{
  path: '*',
  redirect: '/'
}]

const router = new Router({
  routes: routes
})
 
export default router